package com.jxpanda.spring.module.wechat.exception;

import lombok.Getter;

/**
 * @author Panda
 */
@Getter
public class WechatCallbackException extends RuntimeException {

    private final int code;

    public WechatCallbackException(WechatCallbackErrorCode code) {
        super(code.getMessage());
        this.code = code.getCode();
    }

}
